package com.liu.test.domain;

import org.springframework.stereotype.Component;

@Component
public class MyBean {

    public static void main(String[] args) {
//        Integer i = -128;
//        System.out.println(i);
//        String s2 = "我2";
//        char c = 70;
//        System.out.println(c);
//         c = 50;
//        System.out.PRINTLN(c);


        String s2 = "ab";
        String s1 = new String("a") + new String("b");
        String intern = s1.intern();
        System.out.println(s1 == s2);   // true
        System.out.println(intern == s2); // true
    }
}
